package constant;

public enum ExecuteEnum implements EnumBaseInterface {
    Validator(1, "验证"),
    GetData(2, "查询"),
    GetDataPub(7, "公共查询"),
    Operator(3, "操作"),
    Save(4, "保存"),
    Sync(5, "同步"),
    Async(6, "异步"),
    ;

    private int code;
    private String msg;

    ExecuteEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public String getMsg() {
        return this.msg;
    }

    @Override
    public int getCode() {
        return this.code;
    }

    @Override
    public String getName() {
        return this.name();
    }
}
